<template>
  <div>
    <el-main>
      <el-table
        :data="tableData"
        border
        style="width: 100%"
        :header-cell-style="{ background: '#409EFF', color: '#ffffff' }"
        @row-click="getUserDetail"
      >
        <el-table-column fixed="left" prop="id" label="工号" width="70">
        </el-table-column>
        <el-table-column fixed="left" prop="name" label="姓名" width="80">
        </el-table-column>
    
        <el-table-column prop="department" label="主部门">
        </el-table-column>

        <el-table-column prop="post" label="职位" ></el-table-column>


      </el-table>
    </el-main>

  </div>
</template>

<script>
export default {
  props: ["tableData", "totalCount", "currentPage", "PageSize"],

  methods: {
    getUserDetail(row) {
      this.$bus.$emit("getUserDetail", row);
    },

  },
};
</script>

<style lang="scss" scoped>
</style>